home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
090
/
cmln0286.arc
/
EXOTIC2.LTG
< prev
next >
Wrap
Text File
|
1986-02-03
|
768b
|
25 lines
Listing 2
program ratfor #Main program
logical openio
CHARACTER name(10),readwr(2)
integer luns(2)
data luns/STDIN,STDOUT/,readwr/LETR,LETW/
call remark('TRS-80 RATFOR.')
do ifile=1,2 #Open input and output files
(
do i=1,3 #Three tries to get it right
(
if(ifile==1) call remark('Input file name? .')
else call remark('Output file name? .')
read 1000,name; 1000 format(10a1)
if(openio(name,luns(ifile),readwr(ifile))) next 2 #Skip to next outer loop if open OK
)
call error('Too many tries.') #Exit if either LUN not opened
)
call parse #Translate RATFOR program to FORTRAN object file
call remark('RATFOR translation complete.')
end